
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>HelloWorld · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="dev-and-debug.html" />
    
    
    <link rel="prev" href="environment.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="environment.html">
            
                <a href="environment.html">
            
                    
                    环境搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="hello.html">
            
                <a href="hello.html">
            
                    
                    HelloWorld
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="dev-and-debug.html">
            
                <a href="dev-and-debug.html">
            
                    
                    开发与调试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    参考
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../framework/file.html">
            
                <a href="../framework/file.html">
            
                    
                    文件组织
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../framework/manifest.html">
            
                <a href="../framework/manifest.html">
            
                    
                    manifest文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../framework/nml.html">
            
                <a href="../framework/nml.html">
            
                    
                    nml文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../framework/page.html">
            
                <a href="../framework/page.html">
            
                    
                    页面与组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    组件
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../component/general.html">
            
                <a href="../component/general.html">
            
                    
                    通用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../component/container.html">
            
                <a href="../component/container.html">
            
                    
                    容器组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../component/basics.html">
            
                <a href="../component/basics.html">
            
                    
                    基础组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../component/form.html">
            
                <a href="../component/form.html">
            
                    
                    表单组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../component/media.html">
            
                <a href="../component/media.html">
            
                    
                    媒体组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    接口
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../api/general.html">
            
                <a href="../api/general.html">
            
                    
                    通用规则
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../api/basic.html">
            
                <a href="../api/basic.html">
            
                    
                    基本功能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../api/interface.html">
            
                <a href="../api/interface.html">
            
                    
                    界面交互
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../api/request.html">
            
                <a href="../api/request.html">
            
                    
                    网络访问
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../api/storage.html">
            
                <a href="../api/storage.html">
            
                    
                    文件数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../api/system.html">
            
                <a href="../api/system.html">
            
                    
                    系统能力
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../api/media.html">
            
                <a href="../api/media.html">
            
                    
                    图形图像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../api/service.html">
            
                <a href="../api/service.html">
            
                    
                    厂商服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../api/third.html">
            
                <a href="../api/third.html">
            
                    
                    第三方服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >HelloWorld</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="helloworld">HelloWorld</h2>
<p>&#x5B8C;&#x6210;&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x6109;&#x5FEB;&#x5730;&#x5F00;&#x59CB; UniApp &#x7684;&#x5F00;&#x53D1;&#x4E86;&#x3002;</p>
<h3 id="&#x521B;&#x5EFA;&#x9879;&#x76EE;">&#x521B;&#x5EFA;&#x9879;&#x76EE;</h3>
<p>&#x542F;&#x52A8; HBuilderX&#xFF0C;&#x83DC;&#x5355;-&gt;&#x6587;&#x4EF6;-&gt;&#x65B0;&#x5EFA;-&gt;&#x9879;&#x76EE;-&gt;UniApp&#xFF0C;&#x8F93;&#x5165;&#x9879;&#x76EE;&#x540D;&#x201C;HelloWorld&#x201D;&#x5B8C;&#x6210;&#x3002; 
<img src="https://img-cdn-qiniu.dcloud.net.cn/uploads/images/1521633940823.png" alt="">
&#x8FD9;&#x4E2A;&#x9879;&#x76EE;&#x5DF2;&#x7ECF;&#x5305;&#x542B;&#x4E86;&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x548C;&#x7B80;&#x5355;&#x9875;&#x9762;&#x7684;&#x57FA;&#x672C;&#x4EE3;&#x7801;&#xFF0C;&#x9879;&#x76EE;&#x6839;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>&#x2502;  app.njs
&#x2502;  manifest.json
&#x2502;  
&#x251C;&#x2500;Common
&#x2502;  &#x2502;  logo.png
&#x2502;  &#x2502;  
&#x2502;  &#x251C;&#x2500;img
&#x2502;  &#x2514;&#x2500;nss
&#x2502;          common.nss
&#x2502;          
&#x251C;&#x2500;Home
&#x2502;      index.nml
&#x2502;      
&#x251C;&#x2500;sign
&#x2502;  &#x2502;  README.md
&#x2502;  &#x2502;  
&#x2502;  &#x2514;&#x2500;release
&#x2514;&#x2500;unpackage
</code></pre><ul>
<li>app.njs APP&#x6587;&#x4EF6;&#xFF08;&#x7528;&#x4E8E;&#x5305;&#x62EC;&#x516C;&#x7528;&#x8D44;&#x6E90;&#xFF09;</li>
<li>manifest.json &#x9879;&#x76EE;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</li>
<li>Common &#x516C;&#x7528;&#x7684;&#x8D44;&#x6E90;</li>
<li>Home &#x9996;&#x9875;</li>
<li>sign &#x7B7E;&#x540D;&#x6587;&#x4EF6;&#x76EE;&#x5F55;</li>
</ul>
<h3 id="&#x771F;&#x673A;&#x8FD0;&#x884C;">&#x771F;&#x673A;&#x8FD0;&#x884C;</h3>
<p>&#x5C06;&#x624B;&#x673A;&#x8BBE;&#x5907;&#x8FDE;&#x63A5;&#x5230;&#x7535;&#x8111;&#xFF0C;&#x8FD9;&#x65F6; HBuilderX &#x4F1A;&#x81EA;&#x52A8;&#x68C0;&#x6D4B;&#x8FDE;&#x63A5;&#x5230;&#x7535;&#x8111;&#x4E0A;&#x7684;&#x8BBE;&#x5907;&#x3002;<br>&#x901A;&#x8FC7;&#x5982;&#x4E0B;&#x4E24;&#x79CD;&#x65B9;&#x5F0F;&#x771F;&#x673A;&#x8FD0;&#x884C;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x624B;&#x673A;&#x4E0A;&#x67E5;&#x770B;&#x6548;&#x679C;&#x3002;</p>
<ul>
<li>&#x83DC;&#x5355;-&gt;&#x8FD0;&#x884C;-&gt;&#x771F;&#x673A;&#x8FD0;&#x884C;-&gt;&#x8BBE;&#x5907;
<img src="https://img-cdn-qiniu.dcloud.net.cn/uploads/images/1521636271142.png" alt=""></li>
<li>&#x5DE5;&#x5177;&#x680F;-&gt;&#x771F;&#x673A;&#x8FD0;&#x884C;&#x6309;&#x94AE;-&gt;&#x8BBE;&#x5907;
<img src="https://img-cdn-qiniu.dcloud.net.cn/uploads/images/1521636278086.png" alt=""></li>
</ul>
<p>&#x6CE8;&#x610F;&#xFF1A;</p>
<ul>
<li>&#x9996;&#x6B21;&#x771F;&#x673A;&#x8FD0;&#x884C;&#xFF0C;&#x4F1A;&#x5B89;&#x88C5; HBuilderX &#x57FA;&#x5EA7;&#x3002;</li>
<li>&#x771F;&#x673A;&#x8FD0;&#x884C;&#x7684;&#x72B6;&#x6001;&#x4E0B;&#xFF0C;&#x6BCF;&#x6B21;&#x4FEE;&#x6539;&#x9879;&#x76EE;&#x6587;&#x4EF6;&#xFF0C;&#x90FD;&#x4F1A;<strong>&#x81EA;&#x52A8;&#x540C;&#x6B65;</strong>&#x9879;&#x76EE;&#x81F3;&#x624B;&#x673A;&#x8BBE;&#x5907;&#x3002;</li>
</ul>
<p><img src="https://img-cdn-qiniu.dcloud.net.cn/uploads/images/1521634741598.jpg" alt=""></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="environment.html" class="navigation navigation-prev " aria-label="Previous page: 环境搭建">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="dev-and-debug.html" class="navigation navigation-next " aria-label="Next page: 开发与调试">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"HelloWorld","level":"1.2.2","depth":2,"next":{"title":"开发与调试","level":"1.2.3","depth":2,"path":"introduction/dev-and-debug.md","ref":"introduction/dev-and-debug.md","articles":[]},"previous":{"title":"环境搭建","level":"1.2.1","depth":2,"path":"introduction/environment.md","ref":"introduction/environment.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"introduction/hello.md","mtime":"2018-03-21T12:50:30.144Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-03-21T12:50:57.603Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

